/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs.statistics;

import fwdisp.gui.moduls.SecRowPanel;
import java.awt.BorderLayout;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 *
 * @author rbs
 */
public class TimeStatisticsPanel extends SecRowPanel{

    public TimeStatisticsPanel() {
        setName("Uhrzeit");

                setLayout(new BorderLayout());


        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        dataset.addValue(17, "", "1");
        dataset.addValue(15, "", "2");
        dataset.addValue(12, "", "3");
        dataset.addValue(9, "", "4");
        dataset.addValue(8, "", "5");
        dataset.addValue(10, "", "6");
        dataset.addValue(5, "", "7");
        dataset.addValue(13, "", "8");
        dataset.addValue(20, "", "9");
        dataset.addValue(19, "", "10");
        dataset.addValue(12, "", "11");
        dataset.addValue(13, "", "12");
        dataset.addValue(3, "", "13");
        dataset.addValue(13, "", "14");
        dataset.addValue(1, "", "15");
        dataset.addValue(10, "", "16");
        dataset.addValue(14, "", "17");
        dataset.addValue(16, "", "18");
        dataset.addValue(12, "", "19");
        dataset.addValue(12, "", "20");
        dataset.addValue(12, "", "21");
        dataset.addValue(11, "", "22");
        dataset.addValue(13, "", "23");
        dataset.addValue(10, "", "24");

       JFreeChart chart = ChartFactory.createBarChart3D("Zeitübersicht",
               "Uhrzeit", "Einsätze", dataset,
               PlotOrientation.VERTICAL, false, false, false);

       chart.setBackgroundPaint(getBackground());


       ChartPanel panel = new ChartPanel(chart);
       panel.setPopupMenu(null);
       add(panel, BorderLayout.CENTER);
    }


}
